<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="qzuser/qzuser/edit">
    <input type="hidden" name="edittype" value="edit">
    <div class="form-group">
        <label for="userid" class="control-label col-xs-12 col-sm-2">用户ID</label>
        <div class="col-xs-12 col-sm-4">
            <input id="userid"  disabled="disabled" class="form-control" name="userid" type="text" value="{$row.userid}">
        </div>
        <label for="nickname" class="control-label col-xs-12 col-sm-2">昵称</label>
        <div class="col-xs-12 col-sm-4">
            <input id="nickname" data-rule="required" class="form-control" name="nickname" type="text" value="{$row.nickname}">
        </div>
    </div>
    <div class="form-group">
        <label for="diqu" class="control-label col-xs-12 col-sm-2">地区</label>
        <div class="col-xs-12 col-sm-4">
            <input id="diqu" data-rule="required" data-toggle="city-picker" class="form-control" name="diqu" type="text" value="{$row.province}/{$row.city}/{$row.area}">
        </div>
        <label for="sex" class="control-label col-xs-12 col-sm-2">性别</label>
        <div class="col-xs-12 col-sm-4">
            <select class="form-control" class="form-control" data-rule="required" id="sex" name="sex">
                <option value="">选择</option>
                <option value="1" {if condition="$row.sex == 1"} selected="selected" {/if}>男</option>
                <option value="2" {if condition="$row.sex == 2"} selected="selected" {/if}>女</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="birthday" class="control-label col-xs-12 col-sm-2">生日</label>
        <div class="col-xs-12 col-sm-4">
            <input id="birthday"  class="datetimepicker" name="birthday" type="text" data-date-default-date="{$row.birthday|date='Y-m-d H:i:s',###}">
        </div>
        <label for="school" class="control-label col-xs-12 col-sm-2">学校</label>
        <div class="col-xs-12 col-sm-4">
            <input id="school"  class="form-control" name="school" type="text" value="{$row.school}">
        </div>
    </div>
    <div class="form-group">
        <label for="school" class="control-label col-xs-12 col-sm-2">身高</label>
        <div class="col-xs-12 col-sm-4">
            <input id="height"  class="form-control" data-rule="range(0~)" name="height" type="text" value="{$row.height}">
        </div>
        <label for="school" class="control-label col-xs-12 col-sm-2">体重</label>
        <div class="col-xs-12 col-sm-4">
            <input id="weight"  class="form-control" data-rule="range(0~)" name="weight" type="text" value="{$row.weight}">
        </div>
    </div>
    <div class="form-group">
        <label for="phone" class="control-label col-xs-12 col-sm-2">手机号</label>
        <div class="col-xs-12 col-sm-4">
            <input id="phone" data-rule="mobile" class="form-control" name="phone" type="text" value="{$row.phone}">
        </div>
        <label for="use_type" class="control-label col-xs-12 col-sm-2">身份</label>
        <div class="col-xs-12 col-sm-4">
            <select class="form-control" class="form-control" data-rule="required" name="use_type" id="use_type">
                <option value="">选择</option>
                <option value="1" {if condition="$row.use_type == 1"} selected="selected"{/if}>普通用户</option>
                <option value="2" {if condition="$row.use_type == 2"} selected="selected"{/if}>达人</option>
                <option value="3" {if condition="$row.use_type == 3"} selected="selected"{/if}>商家</option>
            </select>
        </div>
    </div>
    <div class="form-group">
        <label for="bind_phone" class="control-label col-xs-12 col-sm-2">
            绑定手机号
            {if condition="$row.is_binding == 0"}
            <span style="color: red">*未绑</span>
            {elseif condition="$row.is_binding == 1"/}
            <span style="color: red">*已绑</span>
            {/if}
        </label>
        <div class="col-xs-12 col-sm-4">
            <input id="bind_phone"  class="form-control" name="bind_phone" type="text" value="{$row.bind_phone}">
            <input id="is_binding"  class="form-control" name="is_binding" type="hidden" value="{$row.is_binding}">
        </div>
    </div>
    <div class="form-group">
        <label for="school" class="control-label col-xs-12 col-sm-2">关注量</label>
        <div class="col-xs-12 col-sm-4">
            <input id="gz" data-rule="integer,range(0~)" class="form-control" name="phone" type="text" value="{$row.phone|default='0'}">
        </div>
        <label for="school" class="control-label col-xs-12 col-sm-2">粉丝量</label>
        <div class="col-xs-12 col-sm-4">
            <input id="fs" data-rule="integer,range(0~)" class="form-control" name="phone" type="text" value="{$row.phone|default='0'}">
        </div>
    </div>
    <div class="form-group">
        <label for="school" class="control-label col-xs-12 col-sm-2">获赞量</label>
        <div class="col-xs-12 col-sm-4">
            <input id="prased" data-rule="integer,range(0~)" class="form-control" name="prased" type="text" value="{$row.prased|default='0'}">
        </div>
        <label for="card_num" class="control-label col-xs-12 col-sm-2">体验卡数量</label>
        <div class="col-xs-12 col-sm-4">
            <input id="card_num" data-rule="integer,range(0~)" class="form-control" name="card_num" type="text" value="{$row.card_num|default='0'}">
        </div>
    </div>
    <div class="form-group">
        <label for="school" class="control-label col-xs-12 col-sm-2">身份证正面</label>
        <div class="col-xs-12 col-sm-4">
            <input id="positive_id_card_img" data-rule="" class="form-control" name="positive_id_card_img" type="img" value="{$row.positive_id_card_img}">
        </div>
    </div>
    <div class="form-group">
        <label for="card_num" class="control-label col-xs-12 col-sm-2">身份证反面</label>
        <div class="col-xs-12 col-sm-4">
            <input id="back_id_card_img"  class="form-control" name="back_id_card_img" type="img" value="{$row.back_id_card_img}">
        </div>
    </div>
    <div class="form-group">
        <label for="card_num" class="control-label col-xs-12 col-sm-2">手持身份证</label>
        <div class="col-xs-12 col-sm-4">
            <input id="hold_id_card_img" class="form-control" name="card_num" type="img" value="{$row.hold_id_card_img}">
        </div>
    </div>
    <div class="form-group">
        <label for="introduct" class="control-label col-xs-12 col-sm-2">个人描述</label>
        <div class="col-xs-12 col-sm-4">
            <textarea id="introduct" class="editor" name="introduct">
                {$row.introduct}
            </textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
